/*
 * Stylesheet for Character Map application.
 * Author: chris.calo@gmail.com (Christopher James Calo)
 */

/*
 * TODO: Make these fonts work for IE
 * http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/
 * Consider using http://www.fontsquirrel.com/fontface/generator
 */
@font-face {
  font-family: "Gentium Plus";
  src: url(/fonts/GentiumPlus-R.woff) format("woff"),
       url(/fonts/GentiumPlus-R.ttf) format("truetype");
}

@font-face {
  font-family: "Gentium Plus";
  font-style: italic;
  src: url(/fonts/GentiumPlus-I.woff) format("woff"),
       url(/fonts/GentiumPlus-I.ttf) format("truetype");
}
  
html {
  font-family: "Gentium Plus", serif;
  font-size: small;
}

body {
  margin: 0;
  /* prevent focus outline from creating horizontal scrollbars in Firefox */
  overflow-x: hidden;
  padding: 0;
}

.char-search-form {
  background: #cda;
  padding: 0.5em;
}

.searchbox {
  font-size: 200%;
  padding: 0.25em;
}

.char-selection-target {
  bottom: 100%;
  font-family: sans-serif;
  position: absolute;
  right: 100%;
}

.char-card-list {
  list-style: none;
  margin: 0;
  overflow: hidden;
  padding: 10px; /* same as card margin */
}

.char-card {
  border: solid 1px #ccc;
  float: left;
  margin: 10px;
  padding: 0 4px;
  width: 12em;
}

.char-card:focus {
  background: #ffc;
}

.char-card:focus .char-card-render {
  background: #c0dbf5;
}

.char-card-block {
  font-size: 15px;
  height: 40px; /* two lines */
  line-height: 20px;
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.char-card-code {
  color: #999;
  font-size: 15px;
  height: 20px;
  line-height: 20px;
  overflow: hidden;
  text-align: center;
}

.char-card-render-container {
  background: #fff;
  border: solid 1px #ccc;
  height: 50px;
  line-height: 50px;
  margin: 0 auto 10px;
  overflow: hidden;
  padding: 10px;
  width: 50px;
  text-align: center;
}

.char-card-render {
  display: inline;
  font-size: 42px;
  line-height: 50px;
  white-space: pre;
}

.char-card-name {
  font-size: 23px;
  height: 80px; /* four lines */
  letter-spacing: -0.05em;
  line-height: 20px;
  overflow: hidden;
  padding-bottom: 10px;
  text-align: center;
  text-overflow: ellipsis;
}

.char-card-categories {
  font-size: 15px;
  height: 20px; /* one line */
  line-height: 20px;
  overflow: hidden;
}

.char-card-general-category {
  float: left;
}

.char-card-bidi-category {
  float: right;
}

.char-card-html-entity {
  color: #999;
  font-family: Monaco, Consolas, monospace; /* TODO: better font */
  font-size: 13px;
  text-align: center;
}
